package com.project.bean;

import java.util.List;

/**
 * 商品实体类
 */
public class GoodsBean {
//    商品id
    private Integer id;
//    商品名字
    private String goodsName;
//    商品价格
    private double money;
//    图片路径
    private String imgPath;
//    评论数量
    private Integer assessNum;
//    评论集合
    private List<AssessBean> assessList;
    public GoodsBean (){}
    public GoodsBean(String goodsName, double money) {
        this.goodsName = goodsName;
        this.money = money;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Integer getAssessNum() {
        return assessNum;
    }

    public void setAssessNum(Integer assessNum) {
        this.assessNum = assessNum;
    }

    public List<AssessBean> getAssessList() {
        return assessList;
    }

    public void setAssessList(List<AssessBean> assessList) {
        this.assessList = assessList;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    @Override
    public String toString() {
        return "GoodsBean{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", money=" + money +
                ", imgPath='" + imgPath + '\'' +
                ", assessNum=" + assessNum +
                ", assessList=" + assessList +
                "\n";
    }
}
